]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app: Close all closable windows from quit()
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 3 Sep 2018 15:10:27 +0000 (17:10 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 13 Sep 2018 10:54:39 +0000 (10:54 +0000)
There's no relation between a window being hidden from overview/taskbars
and a window not being closable - currently we effectively disable the
fallback quit action for any application with open transients, which
simply doesn't make sense.

Instead, only exclude windows for which the close action has been
explicitly disabled.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/217

src/shell-app.c

index bb3f0b1712a420fd239fdad477be8a939b809e8f..65c0b5574b1a7274909ce9cfb34f6f682463c5ce 100644 (file)
@@ -1199,7 +1199,7 @@ shell_app_request_quit (ShellApp   *app)
     {
       MetaWindow *win = iter->data;
 
-      if (meta_window_is_skip_taskbar (win))
+      if (!meta_window_can_close (win))
         continue;
 
       meta_window_delete (win, shell_global_get_current_time (shell_global_get ()));